<?php
class Path{
	private $path;
	
	//constructor
	function __construct($path){
		if(is_string($path))
			$this->path=$path;
	}
	
	//others functions
	
	//magic functions
	function __isset($field){
		return isset($this->$field);
	}
	
	function __get($field){
		if (property_exists($this, $field)){
			return $this->$field;
		}
		else return NULL;
	}
}


//$path= new Path('./1.php');
//echo $path->path;
?>